package org.yate.oa.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.RestDayEntity;
import org.yate.oa.utils.Pagination;

@Repository(value = "restDayMapper")
@CacheNamespace(size = 512)
public interface RestDayMapper extends IBaseMapperDao<RestDayEntity, Integer> {

	List<RestDayEntity> getEntities();

	List<RestDayEntity> getEntitiesByUserIds(List<Integer> ids);

	RestDayEntity getEntity(Integer userId);

	Integer getCountByUserId(Integer userId);

	List<RestDayEntity> getEntitieSearch(Pagination<RestDayEntity> page, @Param(value = "orderField") final String orderField, @Param(value = "orderMode") final String orderMode,
			@Param(value = "where") String... strings);

	List<RestDayEntity> getCurrentQuaRestdays(@Param(value = "where") String... strings);
}
